package com.shangke.corejava.ch6.homework;
public class Point {
	private int x;
	private int y;
	
	Point(){
	}
	Point(int x0,int y0){
		x=x0;
		y=y0;
	}
	public void movePoint(int dx,int dy){
		x=x+dx;
		y=y+dy;
		System.out.println("p1的坐标"+x+"，p2的坐标："+y);
	}
	public static void main(String[] args) {
		Point re=new Point();
		re.movePoint(3, 4);
	}
}
